/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/8 16:08
 * @Copyright 博为峰
 */
public class ArrayDemo01 {
    public static void main(String[] args) {
        /*
            数组类型[][] 数组名 = new 数据类型[二维数组中一维数组的个数][一维数组中元素的个数]
         */

        int[][] arr = new int[3][2];
        arr[0][0] = 1;
        arr[1][1] = 2;
//        System.out.println("arr[2][0] = " + arr[2][0]);
//        System.out.println("arr = " + arr);//[[I@4554617c
//        System.out.println("arr[0] = " + arr[0]);//[I@74a14482
//        for (int[] ints : arr) {
//            for (int anInt : ints) {
//                System.out.println("anInt = " + anInt);
//            }
//        }
        for (int i = 0; i < arr.length; i++) {
//            System.out.println("arr = " + arr[i]);
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println("arr" + i + "," + j + "=" + arr[i][j]);
            }
        }
    }
}
